Skip to content

Deprecate XHRInterceptor and WebSocketInterceptor APIs#54869

Closed
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D89051528
Closed

Deprecate XHRInterceptor and WebSocketInterceptor APIs#54869
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D89051528

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented Dec 12, 2025

Summary:
These APIs are unused within React Native since #54868, and we now implement the Network CDP domain in core (React Native DevTools and other CDP clients).

These APIs are private under the Strict TypeScript API, however have some open source usages in Reactotron and Rozenite, which is why we aren't removing these immediately.

We intend to remove these APIs in future, but with no immediate planned timeline.

Changelog:
[General][Deprecated] - Deprecate XHRInterceptor and WebSocketInterceptor APIs. Developer tools should use the CDP Network domain instead.

Differential Revision: D89051528

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 12, 2025
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Dec 12, 2025

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89051528.

Summary:

These APIs are unused within React Native since facebook#54868, and we now implement the `Network` CDP domain in core (React Native DevTools and other CDP clients).

These APIs are private under the Strict TypeScript API, however have some open source usages in Reactotron and Rozenite, which is why we aren't removing these immediately.

We intend to remove these APIs in future, but with no immediate planned timeline.

Changelog:
[General][Deprecated] - Deprecate `XHRInterceptor` and `WebSocketInterceptor` APIs. Developer tools should use the CDP `Network` domain instead.

Reviewed By: vzaidman, javache

Differential Revision: D89051528
@meta-codesync meta-codesync bot closed this in 41380f3 Dec 12, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 12, 2025
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Dec 12, 2025

This pull request has been merged in 41380f3.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in 41380f3

When will my fix make it into a release? | How to file a pick request?

@huntie huntie deleted the export-D89051528 branch December 12, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants